import { convertLegacyProps } from 'antd/lib/button/button';
import React, {useState, useEffect, memo, useMemo} from 'react';


const Son =  memo((prop) => {

    console.log('子组件渲染了');
    const useMemoTest = useMemo(() => {
        console.log('useMemo方法执行了')
    }, [prop.count])
    prop.callback();
    return (
        <>  
            子组件：计数：{prop.count}
            {useMemoTest}
        </>
    )
})

export default Son